Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jul 4, 2025

What do these changes do?

  • Remove Approve action when Rejected (avoid changing decision for now)
  • Remove Reject action with Approved(avoid changing decision for now)
  • Pop-up to confirmation for rejection/approval: e.g. (rephrase nicer)
    • Are you sure you want to reject {email}. The operation cannot be reverted
    • Are you sure you want to approve {email} with 100$ credit and expired=3days. We will proceed to send an invitation email?
  • Icon with colors added to different status
  • Show first the pending ones, then the rest. Also sort by date: newest first.
  • Auto-reload after action instead of only "Reload" button (force-reload)
  • Inconsistency between he name of the table and the content: Named PENDING but call is including all (i.e. pending and reviewed): Renamed to Review Users
  • Date column does not show in the table. Use accountRequestReviewedAt
  • Remove in-master-only constraint

POCenter

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jul 4, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jul 4, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jul 4, 2025
@odeimaiz odeimaiz marked this pull request as ready for review July 4, 2025 12:33
@odeimaiz odeimaiz requested a review from Copilot July 4, 2025 12:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2025

@odeimaiz odeimaiz changed the title rename and enable 🎨 [Frontend] PO Center: Approval/Deny of account requests Jul 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Refactors the user review flow by renaming “Pending Users” to “Review Users,” streamlining approval/rejection actions with confirmation dialogs, status icons, and automatic reloads.

  • Renames “Pending Users” tab to “Review Users” and always enables it
  • Replaces old approve/reject buttons with __createApproveButton/__createRejectButton, adding confirmation pop-ups
  • Introduces status icons, sorts by review date, and adds an auto-reload helper

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
services/static-webserver/client/source/class/osparc/po/UsersPending.js Overhauled approval/rejection logic: added confirmation dialogs, status icons, reload logic, and function renames
services/static-webserver/client/source/class/osparc/po/POCenter.js Renamed and always includes the “Review Users” tab instead of a development-only page
Comments suppressed due to low confidence (1)

services/static-webserver/client/source/class/osparc/po/UsersPending.js:321

  • The template string for the reject confirmation message has an extra double quote and embeds HTML (<br>), which may lead to malformed output or unexpected behavior. Remove the stray quote and consider using a newline or UI-provided formatting instead of raw HTML.
        const msg = `Are you sure you want to reject ${email}.<br>The operation cannot be reverted"`;

Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jul 4, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jul 4, 2025

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jul 4, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 04ffd16

@mergify mergify bot merged commit 04ffd16 into ITISFoundation:master Jul 4, 2025
60 checks passed
@odeimaiz odeimaiz deleted the enh/review-users branch July 4, 2025 13:03
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI/UX Adjustments in the PO center for Approval/Deny of account requests

3 participants